#include <stdio.h>
typedef int Bool;
#define true 1
#define false 0
Bool search(int a[], int n, int key)
{
    int *p = a;
    for (; p < a + n; p++)
	{
        if (*p == key) 
		{
            return true;
        }
    }
    return false;
}
int main() 
{
    int a[5] = {1,2,3,4,5};
    printf("%d\n", search(a, 5, 3));
    printf("%d\n", search(a, 5, 6));
    return 0;
}